<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/bootstrap-3.3.7-dist/css/bootstrap.css" >
</head>
<body>
    <div class="container">
        <form th:action="@{/brand/doSaveBrand}" method="Post">
            <div class="form-group">
                <label for="nameId">Name</label>
                <input type="text" name="name" class="form-control" id="nameId" placeholder="Brand Name">
            </div>
            <div class="form-group">
                <label for="remarkId">Remark</label>
                <textarea class="form-control" rows="5" cols="100" name="remark" id="remarkId">
               </textarea>
            </div>
            <button type="submit" class="btn btn-primary" >Submit</button>
        </form>

    </div>
<!--    <script>-->
<!--        function  doSearch() {-->
<!--            &lt;!&ndash; &ndash;&gt;-->
<!--            //获取form表单中的数据-->
<!--            let name=document.forms[0].name.value;-->
<!--            console.log("name",name);-->
<!--            //定义url-->
<!--            let url=`http://localhost/brand/doFindBrands/${name}`;//rest-->
<!--            //访问对应的url（这种形式的访问将来会改成异步）-->
<!--            location.href=url;-->
<!--        }-->
<!--    </script>-->
</body>
</html>